﻿'use strict';

module.exports = appInfo => {

  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security

  config.keys = appInfo.name + 'zhongrixing_huiwang_server';

  // add your config here

  config.middleware = [];

  config.mysql = {
    client: {

      host: '127.0.0.1',

      port: '3306',

      user: 'root',

      password: 'a123456789',

      database: 'question',
    },

    app: true,

    agent: false,
  }


  config.security = {

    csrf: {
      ignoreJSON: true,
      enable: false
    },

    domainWhiteList: ['http://localhost:8080']

  };

 
  config.cors = {
    allowMethods: 'GET,POST,PUT,DELETE,OPTIONS',
    credentials: true
  }


  return config;
};
